import type { DefaultTheme } from 'vitepress'

const config: DefaultTheme.Config['sidebar'] = {
  '/lang/c/': [
    {
      text: 'C语言',
      items: [
        { text: '简介', link: '/lang/c/intro' },
        { text: '基本语法', link: '/lang/c/syntax' },
        { text: '常量', link: '/lang/c/constant' },
        { text: '变量', link: '/lang/c/variable' },
        { text: '运算符', link: '/lang/c/operator' },
        { text: '流程控制', link: '/lang/c/flow-control' },
        { text: '数据类型', link: '/lang/c/types' },
        { text: '指针', link: '/lang/c/pointer' },
        { text: '函数', link: '/lang/c/function' },
        { text: '数组', link: '/lang/c/array' },
        { text: '字符串', link: '/lang/c/string' },
        { text: '内存管理', link: '/lang/c/memory' },
        { text: '结构体', link: '/lang/c/struct' },
        { text: 'typedef 命令', link: '/lang/c/typedef' },
        { text: 'Union 结构', link: '/lang/c/union' },
        { text: '枚举', link: '/lang/c/enum' },
        { text: '预处理器', link: '/lang/c/preprocessor' },
        { text: 'IO', link: '/lang/c/io' },
        { text: '文件操作', link: '/lang/c/file' },
        { text: '变量说明符', link: '/lang/c/specifier' },
        { text: '多文件项目', link: '/lang/c/multifile' },
        { text: '命令行环境', link: '/lang/c/cli' },
        { text: '多字节字符', link: '/lang/c/multibyte' },
        {
          text: '标准库',
          collapsed: true,
          items: [
            {
              text: 'assert.h',
              link: '/lang/c/lib/assert.h'
            },
            {
              text: 'ctype.h',
              link: '/lang/c/lib/ctype.h'
            },
            {
              text: 'errno.h',
              link: '/lang/c/lib/errno.h'
            },
            {
              text: 'float.h',
              link: '/lang/c/lib/float.h'
            },
            {
              text: 'inttypes.h',
              link: '/lang/c/lib/inttypes.h'
            },
            {
              text: 'iso646.h',
              link: '/lang/c/lib/iso646.h'
            },
            {
              text: 'limits.h',
              link: '/lang/c/lib/limits.h'
            },
            {
              text: 'locale.h',
              link: '/lang/c/lib/locale.h'
            },
            {
              text: 'math.h',
              link: '/lang/c/lib/math.h'
            },
            {
              text: 'signal.h',
              link: '/lang/c/lib/signal.h'
            },
            {
              text: 'stdarg.h',
              link: '/lang/c/lib/stdarg.h'
            },
            {
              text: 'stdbool.h',
              link: '/lang/c/lib/stdbool.h'
            },
            {
              text: 'stddef.h',
              link: '/lang/c/lib/stddef.h'
            },
            {
              text: 'stdint.h',
              link: '/lang/c/lib/stdint.h'
            },
            {
              text: 'stdio.h',
              link: '/lang/c/lib/stdio.h'
            },
            {
              text: 'stdlib.h',
              link: '/lang/c/lib/stdlib.h'
            },
            {
              text: 'string.h',
              link: '/lang/c/lib/string.h'
            },
            {
              text: 'time.h',
              link: '/lang/c/lib/time.h'
            },
            {
              text: 'wchar.h',
              link: '/lang/c/lib/wchar.h'
            },
            {
              text: 'wctype.h',
              link: '/lang/c/lib/wctype.h'
            }
          ]
        }
      ]
    }
  ]
}

export default config
